{extend name="index@common/base"/} 
{block name="style"}
{/block} {block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-7">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form" action="{:url('basic/enterprise/search')}"  onsubmit="return false;">
					<button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					<input class="search-input" name="fullName" type="text" placeholder="企业名称" id="keyword"  autocomplete="off">
					<select name="areaId">
						<option value="">工业园片区</option>
						{volist name="positionList" id="position"}
						<optgroup label="{$position.subsystemName}">
							{volist name="position.areas" id="area"}
								<option value="{$position.subsystemNo},{$area.subsystemNo}">{$area.subsystemName}</option>
							{/volist}
						</optgroup>
						{/volist}
					</select>
				</form>	
			</div>
			<div class="tool col-3">
				<button id="import" data-url="{:url('basic/enterprise/import')}"><i class="fa fa-file-excel-o"></i></button>
				<button id="add"  data-url="{:url('basic/enterprise/add')}"><i class="fa fa-plus"></i></button>
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="enterprise" lay-filter="enterprise" data-url="{:url('basic/enterprise/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}

<script type="text/javascript" src="__JS__/basic/enterprise.js"></script>

<script type="text/html" id="imgTemplate">
	{{# if (d.imgPath){ }}
		<img src="__PUBLIC__{{d.imgPath}}"></img>
	{{# } }}
</script>
<script type="text/html" id="status">
		<div>
			{{# if (d.infoCheckStatus == 1){ }}
			<p class="badge-audit-state pending-approval"></p>
			{{# } }}
			{{# if (d.infoCheckStatus == 2){ }}
			<p class="badge-audit-state under-review"></p>
			{{# } }}
			{{# if (d.infoCheckStatus == 3){ }}
			<p class="badge-audit-state check-success"></p>
			{{# } }}
		</div>
</script>
<script type="text/html" id="toolDemo">
	<div>
		{{# if(d.infoCheckStatus == 1) { }}
		<a class="layui-btn btn-edit" lay-event="edit" id="edit_{{d.id}}" data-url="{:url('basic/enterprise/edit')}?enterpriseId={{d.id}}"><i class="fa fa-pencil"></i></a>
  		{{# } }}
		<a class="layui-btn btn-del" lay-event="del"  id="del_{{d.id}}" data-url="{:url('basic/enterprise/del')}?enterpriseId={{d.id}}"><i class="fa fa-trash"></i></a>
		{{# if(d.infoCheckStatus == 1){ }}
			<a class="layui-btn btn-audit" lay-event="audit" id="audit_{{d.id}}" data-url="{:url('basic/enterprise/audit')}"><i class="fa fa-file-text"></i></a>
		{{# } }}  
	</div>
</script>
<script type="text/html" id="route">
	<div>
		<div class="escape-route" data-url="{:url('basic/enterprise/route')}?enterpriseId={{d.id}}"></div>
	</div>
</script>
{/block}

